File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ class Client {
5454 } else {
5555 this . config = new Config ( ) ;
5656 }
57- this . liveEndpointUrlPrefix = options . liveEndpointUrlPrefix || '' ;
57+ this . liveEndpointUrlPrefix = options . liveEndpointUrlPrefix ?? '' ;
5858
59- const environment = options . environment || this . config . environment ;
59+ const environment = options . environment ?? this . config . environment ;
6060 if ( environment ) {
6161 this . setEnvironment ( environment , options . liveEndpointUrlPrefix ) ;
6262 if ( options . username && options . password ) {
@@ -80,7 +80,7 @@ class Client {
8080 public setEnvironment ( environment : Environment , liveEndpointUrlPrefix ?: string ) : void {
8181 // ensure environment and liveUrlPrefix is set in config
8282 this . config . environment = environment ;
83- this . liveEndpointUrlPrefix = liveEndpointUrlPrefix || "" ;
83+ this . liveEndpointUrlPrefix = liveEndpointUrlPrefix ?? "" ;
8484
8585 if ( environment === "TEST" ) {
8686 this . config . marketPayEndpoint = Client . MARKETPAY_ENDPOINT_TEST ;
You can’t perform that action at this time.
0 commit comments