Skip to content

Commit 91276bc

Browse files
fix: minor fix
1 parent 12c3695 commit 91276bc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# [Versions](https://github.com/Tracktor/react-google-tag-manager/releases)
22

3-
## v1.2.3
4-
- **[fix]** : load initial script
3+
## v1.2.4
4+
- **[fix]** : minor fix

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tracktor/react-google-tag-manager",
33
"description": "React library for use easily the Google Tag Manager",
4-
"version": "1.2.3",
4+
"version": "1.2.4",
55
"private": false,
66
"license": "ISC",
77
"type": "module",

src/context/GoogleTagManagerProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const defaultContextValue = {
3030
export const GoogleTagManagerContext = createContext<DefaultContextValue>(defaultContextValue);
3131

3232
const GoogleTagManagerProvider = ({ children, id, options }: GoogleTagManagerProviderProps) => {
33-
const { dataLayerName, scriptUrl } = { ...options, ...defaultContextValue.options };
33+
const { dataLayerName, scriptUrl } = { ...defaultContextValue.options, ...options };
3434
const isInitialized = useRef<boolean>(false);
3535

3636
const value = useMemo(

0 commit comments

Comments
 (0)