Skip to content

Commit

Permalink
fix: trim OTP values before sending
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit committed Jan 11, 2025
1 parent 3ef5ae0 commit a35a098
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,7 @@ class FileGSTR1Dialog {
this.perform_gstr1_action(
"file",
r => this.handle_filing_response(r.message),
{ pan: pan, otp: this.filing_dialog.get_value("otp") }
{ pan: pan, otp: this.filing_dialog.get_value("otp").trim() }
);

this.toggle_actions(true);
Expand Down
2 changes: 1 addition & 1 deletion india_compliance/public/js/gst_api_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Object.assign(india_compliance, {
],
primary_action_label: __("Submit"),
primary_action(values) {
resolve(values.otp);
resolve(values.otp.trim());
prompt.hide();
},
secondary_action_label: __("Resend OTP"),
Expand Down

0 comments on commit a35a098

Please sign in to comment.