Brackets missing

This commit is contained in:
Jean-Baptiste Dominguez 2018-07-03 12:15:42 +09:00
commit da0ffde179
2 changed files with 5 additions and 2 deletions

View file

@ -625,8 +625,10 @@ angular.module('copayApp.controllers').controller('confirmController', function(
) && !isOn) {
$scope.sendStatus = 'success';
if ($state.current.name === "tabs.send.confirm") // XX SP: Otherwise all open wallets on other devices play this sound if you have been in a send flow before on that device.
if ($state.current.name === "tabs.send.confirm") { // XX SP: Otherwise all open wallets on other devices play this sound if you have been in a send flow before on that device.
soundService.play('misc/payment_sent.mp3');
}
firebaseEventsService.logEvent('sent_bitcoin', { coin: $scope.wallet.coin });
$timeout(function() {
$scope.$digest();

View file

@ -131,8 +131,9 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
}
$scope.paymentReceivedCoin = $scope.wallet.coin;
if ($state.current.name === "tabs.receive")
if ($state.current.name === "tabs.receive") {
soundService.play('misc/payment_received.mp3');
}
$scope.$apply(function () {
$scope.showingPaymentReceived = true;