Skip to content

Commit acb23c7

Browse files
committed
fix(local_ads_management): update action button functionality
- Change ArchiveLocalAdRequested to RestoreLocalAdRequested when clicking - Ensure correct action is performed when user clicks on the restore button
1 parent 859e335 commit acb23c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/local_ads_management/widgets/local_ad_action_buttons.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class LocalAdActionButtons extends StatelessWidget {
175175
// Local ads are not expected to be 'published' from draft,
176176
// but including for completeness.
177177
context.read<LocalAdsManagementBloc>().add(
178-
ArchiveLocalAdRequested(itemId),
178+
RestoreLocalAdRequested(itemId),
179179
);
180180
case 'copyId':
181181
// Copy the ad ID to the clipboard

0 commit comments

Comments
 (0)