fix(lang): formatMessage should not use an object spread

This commit is contained in:
sct
2021-02-15 08:24:17 +00:00
parent 2c403e8e13
commit 8a7fa00164

View File

@@ -148,7 +148,7 @@ const MovieDetails: React.FC<MovieDetailsProps> = ({ movie }) => {
if (data.runtime) {
movieAttributes.push(
intl.formatMessage({ ...messages.runtime }, { minutes: data.runtime })
intl.formatMessage(messages.runtime, { minutes: data.runtime })
);
}