changed ERR_NO_INTERNET_CONNECTION code to 1 and added missed break statements
This commit is contained in:
parent
12368048d0
commit
4cb835cefe
2 changed files with 3 additions and 1 deletions
|
@ -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`;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue