File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const CodePopup: React.FC<CodePopupProps> = ({
2525 function handleCodeSubmit ( code : string ) {
2626 if ( ! geolocation . isOk ) {
2727 setErrorMessage (
28- `Ne možete unijeti kod izvan dozvoljene lokacije. ${ geolocation ?. error ?? ' '} ` ,
28+ `${ geolocation ?. error ?? ' Ne možete unijeti kod izvan dozvoljene lokacije.'} ` ,
2929 ) ;
3030 return ;
3131 }
Original file line number Diff line number Diff line change @@ -54,9 +54,7 @@ export const RateCompanyPage = () => {
5454 }
5555
5656 if ( ! geolocation . isOk ) {
57- toast . error (
58- `Ne možete ocijeniti štand izvan dozvoljene lokacije. ${ geolocation ?. error ?? '' } ` ,
59- ) ;
57+ toast . error ( geolocation ?. error ?? 'Ne možete ocijeniti štand izvan dozvoljene lokacije.' ) ;
6058 navigate ( RouteNames . HOME ) ;
6159 return ;
6260 }
Original file line number Diff line number Diff line change @@ -41,9 +41,10 @@ const ScannerPage = () => {
4141 return ;
4242 }
4343
44- if ( geolocation . isOk === false ) {
44+ if ( ! geolocation . isOk ) {
4545 toast . error (
46- `Ne možete skenirati QR kod izvan dozvoljene lokacije. ${ geolocation ?. error ?? '' } ` ,
46+ geolocation ?. error ??
47+ 'Ne možete skenirati QR kod izvan dozvoljene lokacije.' ,
4748 ) ;
4849 return ;
4950 }
You can’t perform that action at this time.
0 commit comments