Skip to content

Commit

Permalink
"Reorder parameters in ApiConfigModel instantiation"
Browse files Browse the repository at this point in the history
In the KeyForm component, the order of input parameters during the ApiConfigModel instantiation has been corrected. Previously, 'appId', 'appKey', and 'appSecret' were being passed in this order, leading to incorrect configuration. This commit changes the order to 'appId', 'appSecret', and 'appKey', ensuring alignment with the expected parameter order in the ApiConfigModel.
  • Loading branch information
pwh-pwh committed Nov 28, 2023
1 parent 3f736fa commit 2ccd4ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fun KeyForm(trayState:TrayState) {
trayState.sendNotification(errNotification)
} else {
trayState.sendNotification(sucNotification)
ApiConfig.config = ApiConfigModel(appId,appKey,appSecret)
ApiConfig.config = ApiConfigModel(appId,appSecret,appKey)
ApiConfig.writeConfig(ApiConfig.config!!)
}
},
Expand Down

0 comments on commit 2ccd4ba

Please sign in to comment.