fix(rewards): send rewards key instead of amount in command data
This commit is contained in:
@@ -67,7 +67,7 @@ class RewardsViewModel extends Notifier<RewardsViewState> {
|
||||
final request = SendCommandRequestModel(
|
||||
device: device!.identificator.toString(),
|
||||
command: DeviceCommand.rewards,
|
||||
data: {'amount': state.amount},
|
||||
data: {'rewards': state.amount},
|
||||
);
|
||||
|
||||
await _commandsRepository.send(request: request);
|
||||
|
||||
Reference in New Issue
Block a user