Преглед изворни кода

changed ERR_NO_INTERNET_CONNECTION code to 1 and added missed break statements

Abhinav-grd пре 4 година
родитељ
комит
4cb835cefe

+ 2 - 0
src/pages/gallery/components/AlertBanner.tsx

@@ -15,8 +15,10 @@ export default function AlertBanner({ bannerErrorCode }) {
             break;
         case ERR_STORAGE_LIMIT_EXCEEDED:
             errorMessage = constants.STORAGE_QUOTA_EXCEEDED;
+            break;
         case ERR_NO_INTERNET_CONNECTION:
             errorMessage = constants.NO_INTERNET_CONNECTION;
+            break;
         default:
             errorMessage = `Unknown Error Code - ${bannerErrorCode} Encountered`;
     }

+ 1 - 1
src/pages/gallery/components/CreateCollection.tsx

@@ -6,7 +6,7 @@ import { CollectionAndItsLatestFile } from 'services/collectionService';
 import { getToken } from 'utils/common/key';
 import constants from 'utils/strings/constants';
 
-export const ERR_NO_INTERNET_CONNECTION = 0;
+export const ERR_NO_INTERNET_CONNECTION = 1;
 
 export default function CreateCollection(props) {
     const {