Fix HTML bug on new payment method page and update providers_controller spec

This commit is contained in:
Nihal Mohammed
2021-06-11 22:07:05 +05:30
parent 4faf76794d
commit 522a7384e7
2 changed files with 2 additions and 2 deletions

View File

@@ -2,6 +2,6 @@ angular.module("admin.paymentMethods").controller "ProvidersCtrl", ($scope, paym
if paymentMethod.type
$scope.include_html = "/admin/payment_methods/show_provider_preferences?" +
"provider_type=#{paymentMethod.type};" +
"pm_id=#{paymentMethod.id};"
"pm_id=#{paymentMethod.id || ''};"
else
$scope.include_html = ""