mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-15 20:13:48 +00:00
Updated prop to make it required as in Shlink v2.8.0 or newer
This commit is contained in:
@@ -82,7 +82,7 @@ export const processStatsFromVisits = (visits: NormalizedVisit[]) => visits.redu
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const normalizeVisits = map((visit: Visit): NormalizedVisit => {
|
export const normalizeVisits = map((visit: Visit): NormalizedVisit => {
|
||||||
const { userAgent, date, referer, visitLocation, potentialBot = false } = visit;
|
const { userAgent, date, referer, visitLocation, potentialBot } = visit;
|
||||||
const common = {
|
const common = {
|
||||||
date,
|
date,
|
||||||
potentialBot,
|
potentialBot,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export interface RegularVisit {
|
|||||||
date: string;
|
date: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
visitLocation: VisitLocation | null;
|
visitLocation: VisitLocation | null;
|
||||||
potentialBot?: boolean; // Optional only when using Shlink older than v2.7
|
potentialBot: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OrphanVisit extends RegularVisit {
|
export interface OrphanVisit extends RegularVisit {
|
||||||
|
|||||||
Reference in New Issue
Block a user