Fix handling of wrong pin

This commit is contained in:
Neeraj Gupta 2024-01-29 15:50:01 +05:30
parent a3bb85599a
commit f39e095168

View file

@ -1,3 +1,4 @@
import { ApiError } from '../error';
import { logError } from '../sentry';
import { getToken } from '../storage/localStorage/helpers';
import HTTPService from './HTTPService';
@ -31,6 +32,9 @@ class CastGateway {
}
);
} catch (e) {
if (e instanceof ApiError && e.httpStatusCode === 404) {
return '';
}
logError(e, 'failed to getPublicKey');
throw e;
}