Skip to content

Commit

Permalink
Update AppearanceStore in EmbeddedAppearanceSettingsDefinition.setVal…
Browse files Browse the repository at this point in the history
…ue (#10225)
  • Loading branch information
tjclawson-stripe authored Feb 21, 2025
1 parent 3c2f7db commit 85148b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ internal object EmbeddedAppearanceSettingsDefinition :
}

@OptIn(ExperimentalEmbeddedPaymentElementApi::class)
override fun valueUpdated(value: EmbeddedAppearance, playgroundSettings: PlaygroundSettings) {
super.valueUpdated(value, playgroundSettings)
override fun setValue(value: EmbeddedAppearance) {
super.setValue(value)
AppearanceStore.state = AppearanceStore.state.copy(
embeddedAppearance = PaymentSheet.Appearance.Embedded(value.getRow())
)
Expand Down

0 comments on commit 85148b4

Please sign in to comment.