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 {
54
54
} else {
55
55
this . config = new Config ( ) ;
56
56
}
57
- this . liveEndpointUrlPrefix = options . liveEndpointUrlPrefix || '' ;
57
+ this . liveEndpointUrlPrefix = options . liveEndpointUrlPrefix ?? '' ;
58
58
59
- const environment = options . environment || this . config . environment ;
59
+ const environment = options . environment ?? this . config . environment ;
60
60
if ( environment ) {
61
61
this . setEnvironment ( environment , options . liveEndpointUrlPrefix ) ;
62
62
if ( options . username && options . password ) {
@@ -80,7 +80,7 @@ class Client {
80
80
public setEnvironment ( environment : Environment , liveEndpointUrlPrefix ?: string ) : void {
81
81
// ensure environment and liveUrlPrefix is set in config
82
82
this . config . environment = environment ;
83
- this . liveEndpointUrlPrefix = liveEndpointUrlPrefix || "" ;
83
+ this . liveEndpointUrlPrefix = liveEndpointUrlPrefix ?? "" ;
84
84
85
85
if ( environment === "TEST" ) {
86
86
this . config . marketPayEndpoint = Client . MARKETPAY_ENDPOINT_TEST ;
You can’t perform that action at this time.
0 commit comments