fix: prevent crash from insane height param
Build and Deploy / build-and-deploy (push) Successful in 1m5s
Build and Deploy / build-and-deploy (push) Successful in 1m5s
This commit is contained in:
@@ -375,8 +375,10 @@ export function card(app: App) {
|
|||||||
: mockData,
|
: mockData,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const height =
|
const height = Math.min(
|
||||||
typeof w === "number" ? w / (1218 / 508) : heightRaw;
|
typeof w === "number" ? w / (1218 / 508) : heightRaw,
|
||||||
|
2048,
|
||||||
|
);
|
||||||
|
|
||||||
const cacheKey = hash(
|
const cacheKey = hash(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
@@ -660,8 +662,10 @@ export function card(app: App) {
|
|||||||
profilePlayerInfo(avatar.owner, avatar),
|
profilePlayerInfo(avatar.owner, avatar),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const height =
|
const height = Math.min(
|
||||||
typeof w === "number" ? w / (1218 / 508) : heightRaw;
|
typeof w === "number" ? w / (1218 / 508) : heightRaw,
|
||||||
|
2048,
|
||||||
|
);
|
||||||
|
|
||||||
const cacheKey = hash(
|
const cacheKey = hash(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user