Skip to content

Commit

Permalink
fix: cannot claim postcard (#2114)
Browse files Browse the repository at this point in the history
* fix: cannot claim postcard

* Update

---------

Co-authored-by: longbmk <[email protected]>
  • Loading branch information
ppupha and longbmk authored Sep 19, 2024
1 parent df6b7e9 commit 14b9832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/screen/interactive_postcard/design_stamp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ class _DesignStampPageState extends State<DesignStampPage> {
fontSize: 18,
color: MoMAColors.moMA8,
enabled: _didPaint,
label: 'design_stamp_continue',
onTap: () async {
setState(() {
_line = false;
Expand Down
4 changes: 3 additions & 1 deletion lib/view/postcard_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class PostcardAsyncButton extends StatefulWidget {
final Color? textColor;
final Color? disabledTextColor;
final double? fontSize;
final String label;

const PostcardAsyncButton({
super.key,
Expand All @@ -249,6 +250,7 @@ class PostcardAsyncButton extends StatefulWidget {
this.textColor,
this.disabledTextColor,
this.fontSize,
this.label = '',
});

@override
Expand All @@ -261,7 +263,7 @@ class _PostcardAsyncButtonState extends State<PostcardAsyncButton> {
@override
Widget build(BuildContext context) => PostcardButton(
onTap: () {
withDebounce(() async {
withDebounce(key: 'onTap${widget.label}', () async {
setState(() {
_isProcessing = true;
});
Expand Down

0 comments on commit 14b9832

Please sign in to comment.