We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa3830 commit 87191a4Copy full SHA for 87191a4
src/features/adv/components/AdvBanner.tsx
@@ -73,7 +73,10 @@ export const AdvBanner = () => {
73
</a>
74
</span>
75
</div>
76
- {ad.viewUrl && <img src={ad.viewUrl} key={ad.viewUrl} className="hidden" alt="" />}
+ {ad.viewUrl &&
77
+ ad.viewUrl
78
+ .split('||')
79
+ .map((viewUrl, i) => <img key={i} src={viewUrl} className="hidden" alt="" />)}
80
81
)
82
}
src/features/adv/types/index.ts
@@ -1,7 +1,7 @@
1
type AdProvider = {
2
- name: string,
3
- title: string,
4
- link?: string,
+ name: string
+ title: string
+ link?: string
5
6
7
type NextAdType = {
@@ -18,4 +18,4 @@ export type Ad = {
18
backgroundColor?: string
19
provider: AdProvider
20
nextAd?: NextAdType
21
-}
+}
0 commit comments