Skip to content

Commit

Permalink
Hide notice if GTIN Migration started
Browse files Browse the repository at this point in the history
  • Loading branch information
puntope committed Oct 30, 2024
1 parent b5572f4 commit e3d2dbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const GTIN_MIGRATION_BANNER_CONTEXT = 'gtin_migration_banner';
const GtinMigrationBanner = () => {
const { createNotice } = useDispatchCoreNotices();
const [ shouldRender, setShouldRender ] = useState(
glaData?.gtinMigrationStarted ?? true
! glaData?.gtinMigrationStarted
);
const [ showModal, setShowModal ] = useState( false );
const [ startMigration, { loading, error, reset } ] = useApiFetchCallback( {

Check failure on line 28 in js/src/components/gtin-migration-banner/gtin-migration-banner.js

View workflow job for this annotation

GitHub Actions / Lint JavaScript

[@typescript-eslint/no-unused-vars] 'error' is assigned a value but never used. Allowed unused vars must match /createElement/u.
path: `/wc/gla/gtin-migration/start`,
path: `/wc/gla/gtin-migration-start`,
method: 'POST',
} );

Expand Down

0 comments on commit e3d2dbf

Please sign in to comment.