File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
frontends/web/src/routes/bitsurance Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const Bitsurance = ({ accounts }: TProps) => {
47
47
48
48
useEffect ( ( ) => {
49
49
if ( accounts . some ( ( { bitsuranceStatus } ) => bitsuranceStatus ) ) {
50
- navigate ( 'bitsurance/dashboard' ) ;
50
+ navigate ( '/ bitsurance/dashboard' ) ;
51
51
} else {
52
52
setRedirecting ( false ) ;
53
53
}
@@ -70,7 +70,7 @@ export const Bitsurance = ({ accounts }: TProps) => {
70
70
setScanDone ( true ) ;
71
71
setScanLoading ( false ) ;
72
72
if ( insured . length && redirectToDashboard ) {
73
- navigate ( 'bitsurance/dashboard' ) ;
73
+ navigate ( '/ bitsurance/dashboard' ) ;
74
74
}
75
75
} ;
76
76
@@ -87,7 +87,7 @@ export const Bitsurance = ({ accounts }: TProps) => {
87
87
// we force a detection to verify if there is any new insured account
88
88
// before proceeding to the next step.
89
89
await detect ( false ) ;
90
- navigate ( 'bitsurance/account' ) ;
90
+ navigate ( '/ bitsurance/account' ) ;
91
91
} ;
92
92
93
93
if ( redirecting ) {
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export const BitsuranceDashboard = ({ accounts }: TProps) => {
133
133
< Button
134
134
className = { style . button }
135
135
primary
136
- onClick = { ( ) => navigate ( 'bitsurance/account' ) }
136
+ onClick = { ( ) => navigate ( '/ bitsurance/account' ) }
137
137
title = { t ( 'account.exportTransactions' ) } >
138
138
< span > +</ span >
139
139
{ t ( 'bitsurance.dashboard.button' ) }
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export const BitsuranceWidget = ({ code }: TProps) => {
152
152
try {
153
153
let message = JSON . parse ( m . data ) ;
154
154
if ( message ?. type === 'showInsuranceDashboard' ) {
155
- navigate ( 'bitsurance/dashboard' ) ;
155
+ navigate ( '/ bitsurance/dashboard' ) ;
156
156
return ;
157
157
}
158
158
You can’t perform that action at this time.
0 commit comments