Skip to content

Commit

Permalink
fix: fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Nov 22, 2023
1 parent e579598 commit fbe3aa2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
validateCAIP,
} from '../helpers';
import * as PUSH_ALIAS from '../alias';
import { PushAPI } from '../pushapi/PushAPI';

// ERROR CONSTANTS
const ERROR_ACCOUNT_NEEDED = 'Account is required';
Expand Down Expand Up @@ -113,7 +114,7 @@ export class PushNotificationBaseClass {

// checks if the signer object is supplied
protected checkSignerObjectExists() {
if (!this.signer) throw new Error(ERROR_SIGNER_NEEDED);
if (!this.signer) throw new Error(PushAPI.ensureSignerMessage());
return true;
}

Expand Down

0 comments on commit fbe3aa2

Please sign in to comment.