We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 438a07c commit cb8362aCopy full SHA for cb8362a
client/skr/models/Payment.coffee
@@ -50,7 +50,9 @@ class Skr.Models.Payment extends Skr.Models.Base
50
#{@name} #{metadata}"
51
52
onSetVendor: ->
53
- return unless @vendor and @vendor.isPersistent()
+ return if not @vendor.isPersistent() or
54
+ @vendor.id is this.previous('vendor')?.id
55
+
56
@name ||= @vendor.billing_address.name if @vendor.billing_address.name?
57
@vendor.withAssociations(['billing_address']).then (v) =>
58
@address = v.billing_address.toString()
0 commit comments