Skip to content

Commit eca9a99

Browse files
roryabrahamNicolasBonet
authored andcommitted
fix: rename accountID to agentAccountID in DeleteAgentParams and update deleteAgent function accordingly
1 parent 6094772 commit eca9a99

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type DeleteAgentParams = {
2-
accountID: number;
2+
agentAccountID: number;
33
};
44

55
export default DeleteAgentParams;

src/libs/actions/Agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function deleteAgent(accountID: number) {
195195
},
196196
];
197197

198-
write(WRITE_COMMANDS.DELETE_AGENT, {accountID}, {optimisticData, successData, failureData});
198+
write(WRITE_COMMANDS.DELETE_AGENT, {agentAccountID: accountID}, {optimisticData, successData, failureData});
199199
Navigation.navigate(ROUTES.SETTINGS_AGENTS);
200200
}
201201

0 commit comments

Comments
 (0)