Skip to content

Commit 11504c0

Browse files
committed
fixed bug in my implementation of dispute with or without buttons
1 parent 1135b23 commit 11504c0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bot/modules/dispute/commands.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ const dispute = async (ctx: MainContext) => {
9595
try {
9696
const { user } = ctx;
9797

98-
if (ctx.state.command.args.length === 2) {
98+
console.log('Total Arguments:', ctx.state.command.args.length);
99+
console.log('Argumentos:', JSON.stringify(ctx.state.command.args));
100+
if (ctx.state.command.args.length > 0 && ctx.state.command.args[0] !== "undefined") {
99101
const params = await validateParams(ctx, 2, '\\<_order id_\\>');
100102

101103
if (!params || params.length === 0) return;

0 commit comments

Comments
 (0)