Skip to content

Commit

Permalink
fix(simulator): replace ^ with \n when rendering wigal response
Browse files Browse the repository at this point in the history
  • Loading branch information
ephrimlawrence committed May 2, 2024
1 parent abde2a1 commit 86da412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Simulator {
mode: resp[1] as any,
msisdn: resp[2],
sessionid: resp[3],
userdata: resp[4],
userdata: resp[4].replace('^', '\n'),
username: resp[5],
trafficid: resp[6],
other: resp[7],
Expand Down
2 changes: 1 addition & 1 deletion src/menus/base.menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export abstract class BaseMenu {
return undefined;
}

abstract actions(): Promise<MenuAction[]>;
abstract actions(): Promise<MenuAction[]> | MenuAction[];

async inputs(): Promise<FormInput[]> {
return [];
Expand Down

0 comments on commit 86da412

Please sign in to comment.