If no flash is sent from the server, show the generic error

This commit is contained in:
Luis Ramos
2020-04-14 14:24:08 +01:00
parent 47a93568dc
commit cedf1b26f2
2 changed files with 17 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ Darkswarm.factory 'Checkout', ($injector, CurrentOrder, ShippingMethods, StripeE
if response.data.path
Navigation.go response.data.path
else
throw response unless response.data.errors || response.data.flash
throw response unless response.data.flash
@errors = response.data.errors
@loadFlash(response.data.flash)