diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js index af410532..8220411d 100644 --- a/frontend/src/components/BottomBar.js +++ b/frontend/src/components/BottomBar.js @@ -90,7 +90,7 @@ class BottomBar extends Component { this.setState({openProfile: false}); }; - handleSubmitInvoiceClicked=(rewardInvoice)=>{ + handleSubmitInvoiceClicked=(e, rewardInvoice)=>{ this.setState({ badInvoice:false, showRewardsSpinner: true, @@ -112,6 +112,7 @@ class BottomBar extends Component { withdrawn: data.successful_withdrawal ? true : false, showRewardsSpinner: false, })); + e.preventDefault(); } getHost(){ diff --git a/frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx b/frontend/src/components/Dialogs/ExchangeSummary.tsx similarity index 100% rename from frontend/src/components/Dialogs/ExchangeSummaryDialog.tsx rename to frontend/src/components/Dialogs/ExchangeSummary.tsx diff --git a/frontend/src/components/Dialogs/ProfileDialog.tsx b/frontend/src/components/Dialogs/Profile.tsx similarity index 95% rename from frontend/src/components/Dialogs/ProfileDialog.tsx rename to frontend/src/components/Dialogs/Profile.tsx index c6f7b678..27815e91 100644 --- a/frontend/src/components/Dialogs/ProfileDialog.tsx +++ b/frontend/src/components/Dialogs/Profile.tsx @@ -41,7 +41,7 @@ type Props = { activeOrderId: string | number; lastOrderId: string | number; referralCode: string; - handleSubmitInvoiceClicked: (invoice: string) => void; + handleSubmitInvoiceClicked: (e:any, invoice: string) => void; host: string; showRewardsSpinner: boolean; withdrawn: boolean; @@ -273,9 +273,9 @@ const ProfileDialog = ({ ) : ( -